package com.zk.nakedfowl.dictionary.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_dictionary")
public class Dictionary implements Serializable{

	@Id
	private String id;//


	private String name;//名称
	private String value;//数据值（业务代码）
	private String label;//标签名
	private String type;//类型


	//关联数据
	@Transient
	private List<Dictionary> children;

	public List<Dictionary> getChildren() {
		return children;
	}

	public void setChildren(List<Dictionary> children) {
		this.children = children;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String zhType;//中文类型名
	private String description;//描述
	private Integer sort;//排序（升序）
	private String parentId;//父级编号

	
	public String getId() {		
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getValue() {		
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	public String getLabel() {		
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}

	public String getType() {		
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	public String getZhType() {		
		return zhType;
	}
	public void setZhType(String zhType) {
		this.zhType = zhType;
	}

	public String getDescription() {		
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSort() {		
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getParentId() {		
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}


	
}
